package com.xuecheng.system.api;

import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.system.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("xc-system-service")
public interface SystemApi {
    @GetMapping("/{userId}")
    public ResponseResult<User> uerInfo(@PathVariable("userId") Long userId);
}
